package com.sqx.modules.indentTimeRecord.service;

import com.sqx.modules.indentTimeRecord.entity.IndentTimeRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sqx.common.utils.Result;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
/**
 * 加时记录 服务类
 * @author wuChang
 * @since 2024-05-22
 */

public interface IndentTimeRecordService extends IService<IndentTimeRecord> {
    /**
     * 新增或修改加时记录
     */
    Result saveIndentTimeRecord (IndentTimeRecord indentTimeRecord);

    /**
     * 获取改加时记录列表
     */
    IPage<IndentTimeRecord> getIndentTimeRecordList(Integer page, Integer limit, IndentTimeRecord indentTimeRecord);

    Result indentAddTime(Long userId, Long indentId, Long timeId);

    Result indentRemoveTime( Long recordId);
}
